package com.toe.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.toe.common.restful.JsonPage;
import com.toe.pojo.dto.business.BusinessInfoUpdateDTO;
import com.toe.pojo.entity.business.BusinessInformation;
import com.toe.pojo.vo.business.BusinessInfoDetailsVO;
import com.toe.pojo.vo.business.BusinessInfoId;
import com.toe.pojo.vo.business.BusinessInfoShowVO;
import com.toe.pojo.vo.recommend.RecommendBusinessVO;
import com.toe.pojo.vo.user.UserUserVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 陶涛
 * @since 2022-07-19
 */
@Service
public interface BusinessInformationService extends IService<BusinessInformation> {

    /*通过ids查询推荐商家信息*/
    List<RecommendBusinessVO> businessByIds(List<String> ids);

    /*分页查询出所有商家展示信息*/
    JsonPage<BusinessInfoShowVO> getAllBusinessByPage(Integer pageNum, Integer pageSize);

    /*根据id查询出商家详细信息*/
    BusinessInfoDetailsVO businessInfoDetails(Long id);
    /*单独返回商家封面作为商家相册*/
    List<String> businessCover(Long id);

    /*返回商家ID给order模块*/
    List<BusinessInfoId> businessIds();


    /*动态更新商家信息*/
    void updateBusinessInfo(BusinessInfoUpdateDTO businessInfoUpdateDTO);


    // 分页查询用户列表
    JsonPage<BusinessInformation> getBusinessListByPage(Integer pageNum, Integer pageSize);

    // 根据id逻辑删除入驻商家
    void removeBusinessInformation(Long id);
}
